<script setup lang="ts">
</script>

<template>
    <div id="user-layout">
        <a-layout style="height: 100vh;">
            <a-layout-header class="header">
                <a-space>
                    <img class="logo" src="../assets/logo.svg" alt="logo" />
                    <div class="title">yuDaDa AI 答题应用平台</div>
                </a-space>
            </a-layout-header>
            <a-layout-content class="content">
                <!-- 内容是可替换的 -->
                <router-view />
            </a-layout-content>
            <a-layout-footer class="footer">
                <a href="https://www.code-nav.cn" target="_blank">程序员 lzy</a>
            </a-layout-footer>
        </a-layout>
    </div>
</template>

<style scoped>
#user-layout {
    text-align: center;
    background: url("https://gw.alipayobjects.com/zos/rmsportal/FfdJeJRQWjEeGTpqgBKj.png") 0% 0% / 100% 100%;
}

.header {
    margin-bottom: 16px;
    font-size: 21px;
}

.content {
    margin-bottom: 28px;
    padding: 20px
}

.footer {
    background: #efefef;
    padding: 16px;
    border: 1px solid #dcdcdc;
    text-align: center
}

.logo {
    width: 40px;
    height: 40px;
}

.title {
    margin-left: 10px;
    font-weight: 600;
}
</style>